package pl.put.to.regression.verification;

public class LSErrorVefyficator extends AErrorVeryficator {

	@Override
	protected double modifyError(double currentError, double yReal, double yCounted) {
		double error = currentError + Math.pow(yCounted - yReal, 2);

		return error;
	}

	@Override
	protected double normalizeError(double error, int dataSize) {
		double normalizedError = error / dataSize;

		return normalizedError;
	}

}
